<div class="search-box">
	<form class="search_form layui-form" lay-filter="member_search_form">
		{if condition="SITE_ID EQ null"}
		<div class="layui-inline">
			<label class="layui-form-label">所属分站</label>
			<div class="layui-input-inline">
				<select name="site_id" lay-filter="site_id"  lay-search="">
					<option value="">全部</option>
					<option value="-1">主站</option>
					{volist name="get_site_list" id="list"}
						<option value="{$list.site_id}">{$list.site_name}</option>
					{/volist}
				</select>
			</div>
		</div>
		{/if}
		<div class="layui-inline">
			<label class="layui-form-label">用户名</label>
			<div class="layui-input-inline">
				<input type="text" name="username" autocomplete="off" class="layui-input">
			</div>
		</div><div class="layui-inline">
			<label class="layui-form-label">姓名</label>
			<div class="layui-input-inline">
				<input type="text" name="realname" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">手机</label>
			<div class="layui-input-inline">
				<input type="text" name="phone" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="layui-inline">
			<label class="layui-form-label">用户id</label>
			<div class="layui-input-inline">
				<input type="text" name="member_id" autocomplete="off" class="layui-input">
			</div>
		</div>
		<div class="pack-up"></div>
	</form>
</div>
<div class="layui-btn-group" style="display: none;">
	<button data-title="删除账号" class="layui-btn layui-btn-danger layui-btn-sm del-member"><i class="layui-icon layui-icon-delete"></i>删除</button>
</div>
<table class="layui-hide" id="member_list" lay-filter="member_list"></table>
<script>
	var member_list_url = "{:url('staff/ajaxMember')}";
	var staff_delete_url = "{:url('staff/ajaxDelete')}";
	var staff_one_url = "{:url('staff/ajaxOneData')}";
	var member_save_url = "{:url('member/saveData')}";
	var member_cols = {$cols};
</script>
<script type="text/html" id="stateTpl">
	{{# if(d.state == 1){}}
		<div class="layui-anim circle layui-bg-blue" data-title="正常">
			<i class="layui-icon layui-icon-radio"></i>
		</div>
	{{# } else {}}
		<div class="layui-anim circle layui-bg-red" data-title="冻结">
			<i class="layui-icon layui-icon-radio"></i>
		</div>
	{{# }}}
</script>
<script src="/static/js/member/member.js" type="text/javascript" charset="utf-8"></script>
<script type="text/html" id="member_tool">
	<div class="layui-btn-group">
		{{# if(d.state == 1){ }}
		<a class="layui-btn layui-btn-warm layui-btn-xs" lay-event="frozen" data-title="冻结账号"><i class="layui-icon layui-icon-radio"></i></a>
		{{# } else { }}
		<a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="refrozen" data-title="解冻账号"><i class="layui-icon layui-icon-log"></i></a>
		{{# }}}
		<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del" data-title="删除账号" style="display:none;"><i class="layui-icon layui-icon-delete"></i></a>
		<a class="layui-btn layui-btn-danger layui-btn-xs hide-update" lay-event="update"><i class="layui-icon layui-icon-up"></i></a>
	</div>
</script>